<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page language="java"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<!DOCTYPE html>

<div id="registro">
    <table align="center" cellspacing="10px" width="350px">
        <html:form action="/editprofileok.do" enctype="multipart/form-data">
            <html:hidden property="idUser"/>


            <tr>
                <td><bean:message key="edituser.sub"/></td>
            </tr>
            <tr>
                <td><bean:message key="login.txt"/></td>
            </tr>
            <tr>
                <td><html:text property="login" readonly="true"/></td>
            </tr>
            <tr>
                <td><bean:message key="password.txt"/></td>
            </tr>
            <tr>
                <td><html:password property="password"/></td>
            </tr>
            <tr>
                <td><bean:message key="name.txt"/></td>
            </tr>
            <tr>
                <td><html:text property="name"/></td>
            </tr>
            <tr>
                <td><bean:message key="surname.txt"/></td>
            </tr>
            <tr>
                <td><html:text property="surname"/></td>
            </tr>
            <tr>
                <td><bean:message key="email.txt"/></td>
            </tr>
            <tr>
                <td><html:text property="email" readonly="true"/></td>
            </tr>
            <tr>
                <td><bean:message key="location.txt"/></td>
            </tr>
            <tr>
                <td><html:text property="location" /></td>
            </tr>
            <tr>
                <td><bean:message key="disp_corregir.txt"/></td>
            </tr>
            <tr>
                <td>
                    <html:select property="availability">

                        <c:forEach var="i" begin="1" end="10" step="1" varStatus ="status">

                            <html:option value="${i}">${i}</html:option>

                </c:forEach>

            </html:select>
            </td>
            </tr>
            <tr>
                <td>    
               <bean:message key="avatar.txt"/>
                </td>
            </tr>
            <tr>
                <td>
               <html:file property="avatar" size="35" />
                </td>
            </tr>
            <tr>
                <td><html:submit><bean:message key="edituser.sub"/></html:submit> </td>
            </tr>
        </html:form>
    </table>
</div>






